import request from '@/utils/request'

// 查询断电日志列表
export function listOutLog(query) {
  return request({
    url: '/mahjong/send/list',
    method: 'get',
    params: query
  })
}

// 查询桌号详细
export function getTablenumber(id) {
  return request({
    url: '/mahjong/tablenumber/' + id,
    method: 'get'
  })
}

// 新增桌号
export function addTablenumber(data) {
  return request({
    url: '/mahjong/tablenumber',
    method: 'post',
    data: data
  })
}

// 修改桌号
export function updateTablenumber(data) {
  return request({
    url: '/mahjong/tablenumber',
    method: 'put',
    data: data
  })
}

// 删除桌号
export function delTablenumber(id) {
  return request({
    url: '/mahjong/tablenumber/' + id,
    method: 'delete'
  })
}

// 导出桌号
export function exportTablenumber(query) {
  return request({
    url: '/mahjong/tablenumber/export',
    method: 'get',
    params: query
  })
}
